if __name__ == '__main__':
    #根据一串字符判断有多少小写，大写，数字
    """
    这是我的第一个python程序，祝学习愉快
    """
    strs = "this IS a Test 你好! 123 TT"
    state = {"lower": 0, "upper": 0, "number": 0, "chinaese": 0, "other": 0}

    for char in strs:
        if char.islower():
            state['lower'] += 1
        elif char.isupper():
            state['upper'] += 1
        elif char.isdigit():
            state['number'] += 1
        elif char > '\u4E00' and char < '\u9FA5':
            state['chinaese'] += 1
        else:
            state['other'] += 1
    print("lower:%d\nupper:%d\nnumber%d\nchinaese%d\nother%d" % (state['lower'],
                                                                 state['upper'], state['number'], state['chinaese'],
                                                                 state['other']))
